package Spring.cn.edu.scau.cmi.lishuoxin.client;

import org.springframework.context.ApplicationContext;

import Spring.cn.edu.scau.cmi.lishuoxin.bean.Student;
import Spring.cn.edu.scau.cmi.lishuoxin.bean.Teacher;
import Spring.cn.edu.scau.cmi.lishuoxin.util.SpringUtil;

public class TestClient {
	public static void main(String[] args) {
		
		ApplicationContext ac = SpringUtil.getContext();
		Student student = (Student) ac.getBean("lsx");
		System.out.println(student.toString());
		
		Teacher teacher = (Teacher) ac.getBean("lzq");
		System.out.println(teacher.toString());
	}
}
